package com.junlaninfo.shouxie;

/**
 * Created by 辉 on 2020/9/10.
 */
public class Test2  {
    public static void main(String[] args) {
        MyFutureTask<String> task = new MyFutureTask<String>(new MyCallableImpl());
        Thread thread = new Thread(task);
        thread.start();
        String s = task.get();
        System.out.println(s);
    }


}
